package dailytest;

import com.alibaba.fastjson.JSONObject;
import entity.DeathMedicalRecordStatusDTO;

import java.util.*;

/**
 * @Author: heweiwei
 * @Date: 12/2/24 PM7:47
 * @Description:
 */
public class MaxTest {


    // 测试方法
    public static void main(String[] args) {
        Map<Integer,List<DeathMedicalRecordStatusDTO>> map=new HashMap<>();

        DeathMedicalRecordStatusDTO a_1=new DeathMedicalRecordStatusDTO();
        a_1.setCode(1);
        a_1.setDesc("a_1");

        DeathMedicalRecordStatusDTO a_2=new DeathMedicalRecordStatusDTO();
        a_1.setCode(2);
        a_1.setDesc("a_2");


        DeathMedicalRecordStatusDTO b_1=new DeathMedicalRecordStatusDTO();
        b_1.setCode(1);
        b_1.setDesc("b_1");

        DeathMedicalRecordStatusDTO b_2=new DeathMedicalRecordStatusDTO();
        b_2.setCode(2);
        b_2.setDesc("b_2");


        map.put(1,Arrays.asList(a_1,a_2));
        map.put(2,Arrays.asList(b_1,b_2));

        System.out.println("JSONObject.toJSONString(map) = " + JSONObject.toJSONString(map));


    }
}
